package com.jingdianjichi.project.domain.convert;

import com.jingdianjichi.project.domain.bo.SubjectInfoBo;
import com.jingdianjichi.project.domain.bo.SubjectOptionBo;
import com.jingdianjichi.project.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * ClassName:SubjectCategoryConverter
 * Package:com.jingdianjichi.subject.domain.convert
 * Description:
 *
 * @Author fst
 * @Create 2024/9/26 15:45
 * @Version 1.0
 */
@Mapper
public interface SubjectInfoConverter
{
    SubjectInfoConverter INSTANCE= Mappers.getMapper(SubjectInfoConverter.class);

    SubjectInfo convertBOTOInfoSubject (SubjectInfoBo subjectInfoBo);


    List<SubjectInfoBo> convertInfoTOBoSubjectList (List<SubjectInfo> subjectInfoList);

    SubjectInfoBo convertInfoTOBOSubject(SubjectInfo subjectInfo);

    SubjectInfoBo convertOptionAndInfoTOBO(SubjectInfo subjectInfo, SubjectOptionBo subjectInfoBo);
}
